package com.cn.wanxi.util.service.impl;

import com.cn.wanxi.util.dao.impl.NavDao;
import com.cn.wanxi.util.model.CommunalTitle;
import com.cn.wanxi.util.model.ContactModel;
import com.cn.wanxi.util.model.LogoModel;
import com.cn.wanxi.util.model.NavModel;
import com.cn.wanxi.util.service.INavService;

import java.util.List;

public class HeaderService implements INavService {
    NavDao navDao = new NavDao();

    @Override
    public List<NavModel> getNav() {
        List<NavModel> navList = navDao.Nav();
        return navList;
    }

    @Override
    public List<ContactModel> getContac() {
        List<ContactModel> contactList =navDao.contac();
        return contactList;
    }

    @Override
    public List<CommunalTitle> getCommunalTitle() {
        List<CommunalTitle> communalTitles = navDao.communalTitle();
        return communalTitles;
    }

    @Override
    public LogoModel getLogo() {
        LogoModel logo = navDao.Logo();
        return logo;
    }
}
